<template>
  <!-- 明细页面弹出框-->
  <el-dialog
    title="小额预对账应答信息-查看原交易明细"
    center
    :visible.sync="open"
    width="1024px"
    :close-on-click-modal="false"
    @close="closeFn"
    append-to-body
  >
    <el-form ref="detailsForm" :model="formData" :rules="rules" label-width="150px" :disabled="true">
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="交易流水号：" prop="id">
            <el-input v-model="formData.id" placeholder="交易流水号" />
          </el-form-item>
        </el-col>
        <el-col :span="12"></el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="工作日期：" prop="workdate">
            <el-date-picker
              v-model="formData.workdate"
              type="date"
              value-format="yyyyMMdd"
              placeholder="选择日期"
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="报文类型：" prop="pkgType">
            <el-select v-model="formData.pkgType" placeholder="请选择" style="width: 100%">
              <el-option
                v-for="dict in dictMap.PKG_TYPE"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="来往账标志：" prop="drct">
            <el-select v-model="formData.drct" placeholder="请选择" style="width: 100%">
              <el-option
                v-for="dict in dictMap.DRCTCODE"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="业务类型：" prop="bizType">
            <el-select v-model="formData.bizType" placeholder="请选择" style="width: 100%">
              <el-option
                v-for="dict in dictMap.BIZ_TYPE"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="发起行行号：" prop="sender">
            <el-input v-model="formData.sender" placeholder="发起行行号" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="发起行行名：" prop="senderName">
            <el-input v-model="formData.senderName" placeholder="发起行行名" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="接收行行号：" prop="rcver">
            <el-input v-model="formData.rcver" placeholder="接收行行号" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="接收行行名：" prop="rcverName">
            <el-input v-model="formData.rcverName" placeholder="接收行行名" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="付款人账户：" prop="payerAccno">
            <el-input v-model="formData.payerAccno" placeholder="付款人账户" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="付款人名称：" prop="payerName">
            <el-input v-model="formData.payerName" placeholder="付款人名称" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="收款人账户：" prop="payeeAccno">
            <el-input v-model="formData.payeeAccno" placeholder="收款人账户" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="收款人名称：" prop="payeeName">
            <el-input v-model="formData.payeeName" placeholder="收款人名称" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="中心状态：" prop="procStatus">
            <el-select v-model="formData.procStatus" placeholder="" style="width: 100%">
              <el-option
                v-for="dict in dictMap.PROCESSSTATUS"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="交易金额：" prop="amount">
            <el-input v-model="formData.amount" placeholder="" />
          </el-form-item>
        </el-col>
      </el-row>

      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="录入操作员：" prop="mdTlrno">
            <el-input v-model="formData.mdTlrno" placeholder="" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="录入时间：" prop="mdTime">
            <el-date-picker
              v-model="formData.mdTime"
              type="datetime"
              value-format="yyyyMMddHHmmss"
              placeholder="选择时间"
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="复核操作员：" prop="checkTlrno">
            <el-input v-model="formData.checkTlrno" placeholder="" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="复核时间：" prop="checkTime">
            <el-date-picker
              v-model="formData.checkTime"
              type="datetime"
              value-format="yyyyMMddHHmmss"
              placeholder="选择时间"
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="审核操作员：" prop="reviewTlrno">
            <el-input v-model="formData.reviewTlrno" placeholder="" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="审核时间：" prop="reviewTime">
            <el-date-picker
              v-model="formData.reviewTime"
              type="datetime"
              value-format="yyyyMMddHHmmss"
              placeholder="选择时间"
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>

      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="发起时间：" prop="sendTime">
            <el-date-picker
              v-model="formData.sendTime"
              type="datetime"
              value-format="yyyyMMddHHmmss"
              placeholder="选择时间"
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="接收时间：" prop="rcvTime">
            <el-date-picker
              v-model="formData.rcvTime"
              type="datetime"
              value-format="yyyyMMddHHmmss"
              placeholder="选择时间"
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button type="primary" @click="closeFn">关闭</el-button>
    </div>
  </el-dialog>
</template>
<script>
import { manualCheck } from "@/api/cnaps/bizMng/hvps_pre_reconciliation_query.js";
export default {
  name: "HvpsDetails",
  components: {},
  props: {
    dictMap: {
      type: Object,
      default: () => {
        return {};
      },
    },
    formData: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  data() {
    return {
      // 是否显示弹出层
      open: false,
      isLoading: false,
      rules: {},
    };
  },
  watch: {
    open(val) {
      if (val) {
      }
    },
  },
  mounted() {},
  methods: {

    // 表单重置
    reset() {
      this.resetForm("detailsForm");
      // this.$set(this, "form", {});
    },
    closeFn() {
      this.open = false;
      this.reset();
    },
    show() {
      this.open = true;
    },
  },
};
</script>
<style lang="scss" scoped></style>
